/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package isd.general.modelo;

import java.io.Serializable;
import java.math.BigDecimal;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ctrosch
 */
@Entity
@Table(name = "GRTTIM",schema = "dbo")
public class GR_TipoDeImpuesto implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "GRTTIM_TIPIMP", nullable = false, length = 6)
    private String tipimp;
    @Column(name = "GRTTIM_DESCRP", length = 60)
    private String descrp;
    @Column(name = "GRTTIM_MINIMO")
    private Character minimo;
    @Column(name = "GRTTIM_VALORM", precision = 18, scale = 4)
    private BigDecimal valorm;
    @Column(name = "GRTTIM_DEBAJA")
    private Character debaja;
    

    public GR_TipoDeImpuesto() {
    }

    public Character getDebaja() {
        return debaja;
    }

    public void setDebaja(Character debaja) {
        this.debaja = debaja;
    }

    public String getDescrp() {
        return descrp;
    }

    public void setDescrp(String descrp) {
        this.descrp = descrp;
    }

    public Character getMinimo() {
        return minimo;
    }

    public void setMinimo(Character minimo) {
        this.minimo = minimo;
    }

    public String getTipimp() {
        return tipimp;
    }

    public void setTipimp(String tipimp) {
        this.tipimp = tipimp;
    }

    public BigDecimal getValorm() {
        return valorm;
    }

    public void setValorm(BigDecimal valorm) {
        this.valorm = valorm;
    }
    
    @Override
    public int hashCode() {
        int hash = 0;
        hash += (tipimp != null ? tipimp.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof GR_TipoDeImpuesto)) {
            return false;
        }
        GR_TipoDeImpuesto other = (GR_TipoDeImpuesto) object;
        if ((this.tipimp == null && other.tipimp != null) || (this.tipimp != null && !this.tipimp.equals(other.tipimp))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "tv.global.modelo.TipoDeImpuesto[tipimp=" + tipimp + "]";
    }

}
